function zc(){
    $.ajax({
        url: "http://47.94.4.201/index.php/index/index/register",
        type: "post",
        data:{
            name:$('input').eq(0).val(),
            pwd:$('input').eq(1).val(),
            emails:$('input').eq(2).val(),
        },
        dataType: "json",
        success: function(data) {
            if(data.msg == "添加成功"){
                location.assign('./登录.html')
            }else{
                alert(data.msg);
            }
        },
        error: function(e) {
            console.log(e);
    }});
}